<!-- INCLUDE ../include/title.html -->
<body>

<div class="ch-container">
    <div class="row">

        <div id="content" class="col-lg-10 col-sm-10 iframemain">
         <!-- foot starts -->
            <!-- INCLUDE ../include/topbar.html -->
        <!-- foot ends -->


        

            <div class="box-content">


                        <table class="table table-striped table-bordered bootstrap-datatable datatable responsive dataTable" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
                            <thead>
                                <tr role="row">

                                    <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1"  aria-sort="ascending" aria-label="Username: activate to sort column descending" style="width:20%" >频道名</th>

                                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1"  aria-label="Date registered: activate to sort column ascending" style="width:10%">频道显示</th>
                                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1"  aria-label="Date registered: activate to sort column ascending" style="width:10%">频道排列</th>
                                    

                                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Role: activate to sort column ascending" style="width:10%">频道状态</th>

                                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="Role: activate to sort column ascending" style="width:20%">备注</th>

                                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 30%;" aria-label="Actions: activate to sort column ascending">操作</th>

                                </tr>
                            </thead>
                        
                            <tbody role="alert" aria-live="polite" aria-relevant="all">
                                <!-- BEGIN ret -->
                                <tr class="odd">
                                    <td class="sorting_1">
                                        <!-- IF list="record" -->
                                        <a href="#" channelid="{ChannelID}" classid="{ClassID}" class="showthickbox">
                                            {ChannelName}
                                        </a>
                                        <!-- ELSEIF list="stream" -->
                                        <a href="#" channelid="{ChannelID}" classid="{ClassID}" class="showthickbox">
                                           {ChannelName}
                                        </a>
                                        <!-- ELSE -->

                                        <a href="index.php?do=Channel/channel_add&ChannelID={ChannelID}">
                                            {ChannelName}
                                        </a> 
                                        <!-- ENDIF -->


                                    </td>
                                    <td class="center ">
                                        <!-- IF ChannelDisplay="0" -->
                                            <span class="label label-success">
                                            {ChannelDisplayShow}
                                            </span>
                                        <!-- ELSE -->
                                            <span class="label label-warning">
                                            {ChannelDisplayShow}
                                            </span>
                                        <!-- ENDIF -->
                                    </td>
                                    <td class="center ">{ChannelDisplayOrder}</td>
                                    <td class="center ">

                                        <!-- IF ChannelEnable="0" -->
                                            <span class="label label-success">
                                            {ChannelEnableShow}
                                            </span>
                                        <!-- ELSE -->
                                            <span class="label label-warning">
                                            {ChannelEnableShow}
                                            </span>
                                        <!-- ENDIF -->


                                    </td>
                                    <td class="center ">{Common}</td>
                                    <td class="center ">
                                        <!-- IF list="record" -->
                                        <a href="index.php?do=Record/record_add&defChannelID={ChannelID}&ClassID={ClassID}" class="btn btn-success">
                                            <i class="glyphicon glyphicon-zoom-in icon-white"></i>
                                            添加录制
                                        </a>

                                         <a href="#" channelid="{ChannelID}" classid="{ClassID}" class="showthickbox btn btn-success">
                                            <i class="glyphicon glyphicon-zoom-in icon-white"></i>
                                            查看录制
                                        </a>
                                        <!-- ELSEIF list="stream" -->
                                        <a href="index.php?do=Stream/stream_add&defChannelID={ChannelID}&ClassID={ClassID}" class=" btn btn-success">
                                            <i class="glyphicon glyphicon-zoom-in icon-white"></i>
                                            添加流
                                        </a>

                                        <a href="#" channelid="{ChannelID}" classid="{ClassID}" class="showthickbox btn btn-success">
                                            <i class="glyphicon glyphicon-zoom-in icon-white"></i>
                                            查看流
                                        </a>
                                        <!-- ELSE -->
                                        <a href="index.php?do=Channel/channel_add&ChannelID={ChannelID}" class="btn btn-info">
                                            <i class="glyphicon glyphicon-edit icon-white"></i>
                                            编辑
                                        </a>
                                        <a href="#" onclick="deletedata('ChannelInfo',{ChannelID})" class="btn btn-danger">
                                            <i class="glyphicon glyphicon-trash icon-white"></i>
                                            删除
                                        </a>
                                         <!-- ENDIF -->

                                    </td>
                                </tr>
                                <!-- END ret -->
                            </tbody>
                    </table>



            </div>

        </div>


     
    </div>
</div><!--/.fluid-container-->



<!-- INCLUDE ../include/bottom.html -->

<script type="text/javascript">
$(document).ready(function() {
    $(".showthickbox").bind("click",function(){
        parent.showBox($(this).attr("channelid"),'{list}',$(this).attr("classid"));
    })    

} );




</script>

</body>
